﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sunboxsoft.ASMS.Server.Domain.Entity
{
    /// <summary>
    /// 充值单
    /// </summary>
    public class ERechargeBill
    {
        public Guid Id { get; set; }

        /// <summary>
        /// 单据号
        /// </summary>
        public string Number { get; set; }

        /// <summary>
        /// 商家id
        /// </summary>
        public Guid? BusinessId { get; set; }

        /// <summary>
        /// 店铺Id
        /// </summary>
        public Guid? StationId { get; set; }

        /// <summary>
        /// 客户id
        /// </summary>
        public Guid CustomerId { get; set; }

        /// <summary>
        /// 充值项Id
        /// </summary>
        public Guid? RechargeItemId { get; set; }

        /// <summary>
        /// 如果使用其他的充值方式，关联信息存在这里
        /// </summary>
        public string RechargeItemTagData { get; set; }

        /// <summary>
        /// 充值渠道
        /// </summary>
        public int RechargeChannel { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        public decimal Amount { get; set; }

        /// <summary>
        /// 下单日期
        /// </summary>
        public DateTime BoughtDate { get; set; }

        /// <summary>
        /// 购买方式
        /// </summary>
        public string BoughtChannel { get; set; }

        /// <summary>
        /// 购买价格
        /// </summary>
        public decimal BoughtPrice { get; set; }

        public Guid? SalesManagerId { get; set; }
        /// <summary>
        /// 销售提成金额
        /// </summary>
        public decimal SalesCommissionAmount { get; set; }
        /// <summary>
        /// 支付的金额
        /// </summary>
        public decimal? PaidAmount { get; set; }
        /// <summary>
        /// 支付日期
        /// </summary>
        public DateTime? PaidTime { get; set; }

        /// <summary>
        /// 收银员
        /// </summary>
        public string Cashier { get; set; }

        /// <summary>
        /// 票据类型
        /// </summary>
        public string InvoiceType { get; set; }

        /// <summary>
        /// 票据编号
        /// </summary>
        public string InvoiceNumber { get; set; }

        public string Memo { get; set; }
        public string CheckOutMemo { get; set; }
        /// <summary>
        /// 参考
        /// <code>Constant.CommonBillStatus.?</code>
        /// </summary>
        public int Status { get; set; }
        public DateTime CreatedTime { get; set; }
        public string Creator { get; set; }
    }
}
